import { IsOptional, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CategoryPathQueryDto {
  @IsOptional()
  @IsString()
  @ApiProperty({ description: '一级分类ID', required: false })
  level1Id?: string;

  @IsOptional()
  @IsString()
  @ApiProperty({ description: '二级分类ID', required: false })
  level2Id?: string;

  @IsOptional()
  @IsString()
  @ApiProperty({ description: '三级分类ID', required: false })
  level3Id?: string;

  @IsOptional()
  @IsString()
  @ApiProperty({ description: '四级分类ID', required: false })
  level4Id?: string;

  @IsOptional()
  @IsString()
  @ApiProperty({ description: '五级分类ID', required: false })
  level5Id?: string;

  @IsOptional()
  @IsString()
  @ApiProperty({ description: '六级分类ID', required: false })
  level6Id?: string;
}